package com.woniuxy.lrz.carlproject.controller.form.formgoods;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;

@Data
public class GoodsInfoAOUForm {

    @ApiModelProperty("商品Id")
    private Integer goodId;

    @ApiModelProperty("商品名称")
    @NotBlank(message = "商品名称不能为空")
    @Length(min = 2,max=20,message = "商品名称长度在2-20之间")
    private String goodName;

    @ApiModelProperty("状态 UP 上架 DOWN 下架")
    private String goodStatus;

    @ApiModelProperty("分类ID")
    @NotNull(message = "关联分类Id不能为空")
    private Integer goodCategoryId;

    @ApiModelProperty("商品描述")
    @NotBlank(message = "商品描述不能为空")
    private String goodDescribe;

    @ApiModelProperty("关联服务id")
    @NotNull(message = "关联服务Id不能为空")
    private Integer serviceId;

    @ApiModelProperty("封面图片")
    @NotBlank(message = "封面图片不能为空")
    private String goodPhoto;

    @ApiModelProperty("商品图片附件集合")
    private ArrayList<GoodsAttachItem> goodAttachItems=new ArrayList<>();

//    @ApiModelProperty("车型具体信息集合(用于修改)")
//    private ArrayList<GoodsCarItem> goodCars=new ArrayList<>();

    @ApiModelProperty("车型Id集合")
    private ArrayList<Integer> carDetails=new ArrayList<>();


}
